import request from '@/common/js/request.js'

export default {

  getUserBalance(){
    return request({
      url:'/pay/user/balance',
      method:'GET',
    })
  },
  
  orderPay(data){
    return request({
      url:'/pay/order/pay',
      method:'POST',
      data
    })
  },
  
  weixinMPPay(data){
    return request({
      url:'/wx/pay',
      method:'POST',
      data
    })
  },
  
  getUserOrderList(){
    return request({
      url:'/pay/order/user/list',
      method:'GET'
    })
  },
  
  deleteOrder(orderId){
    return request({
      url:`/wx/pay/order/${orderId}`,
      method:'DELETE'
    })
  },
  
  cancelOrder(orderId){
    return request({
      url:`/wx/pay/order/cancel/${orderId}`,
      method:'PUT'
    })
  },
  
  OrderGoToPay(orderId){
    return request({
      url:`/getPayInfo/${orderId}`,
      method:'POST'
    })
  }
  
  
  
}